﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace E_mail
{
    public static class Errors
    {
        private static readonly List<Exception> _list=new List<Exception>();

        public static Exception NewException{ get { return _list.Last();} set { _list.Add(value);} }
        public static List<Exception> Exceptions{ get { return _list;} }

        public static void AddException(Exception ex)
        {
            _list.Add(ex);
        }

    }
}
